package midianet.digital.controle;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;

import midianet.digital.modelo.Cliente;
import midianet.digital.negocio.ManterClienteAS;


@ManagedBean(name = "manterClienteMB")
@ViewScoped
public class ManterClienteMB {
	
	private Cliente formulario;
	
	@ManagedProperty("#{manterClienteAS}")
	private ManterClienteAS manterClienteAS;
	
	public void setManterClienteAS(final ManterClienteAS as) {
		this.manterClienteAS = as;
	}
	
	@PostConstruct
	public void inicial(){
		formulario = new Cliente();
	}
	
	public Cliente getFormulario() {
		return formulario;
	}
	
}